package hsky.mk.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import hsky.mk.dao.PersonInfoDao;
import hsky.mk.entity.PersonInfo;
import hsky.mk.service.PersonInfoService;

@Service
public class PersonInfoServiceImpl implements PersonInfoService {
	@Autowired
	private PersonInfoDao personInfoDao;
	
	public PersonInfo getPersonIonfo(Long userId) {
		
		PersonInfo info = personInfoDao.queryPersonInfoById(userId);
		System.out.println(info.getProfileImg());
		
		// TODO Auto-generated method stub
		return info;
	}
}
